@import "../../../styles/base.scss";

.page-space {
  @include wh(100%, 24px);
}

.home-banner {
  @include wh(100%, 352px);
  border-radius: 16px;
  overflow: hidden;

  .home-banner-swiper {
    @include wh(100%, 100%);
    overflow: hidden;


    .home-banner-swiper-item {
      @include wh(100%, 100%);

      // &::before {
 //   content: "";
 //   display: block;
 //   position: absolute;
 //   z-index: 1;
 //   left: 0;
 //   top: 0;
 //   width: 100%;
 //   height: 100%;
 //   border-top-left-radius: 8px;
 //   border-bottom-left-radius: 8px;
 //   background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0) 100%);
 // }

      .home-banner-swiper-item-img {
        display: block;
        @include wh(100%, 100%);
        border-radius: 16px;
      }
    }
  }
}

.card-item {
  width: 100%;
  margin: 20px auto;
  position: relative;
  border-radius: 8px;
  overflow: hidden;

  &::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0) 100%);
  }

  image,
  .taro-img {
    width: 100%;
    height: 352px;
    vertical-align: bottom;
  }

  .card-item-info {
    position: absolute;
    padding: 0 30px;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    color: #fff;
    z-index: 1;
    box-sizing: border-box;

    .card-item-info-title {
      font-size: 36px;
      font-weight: 600;
      line-height: 1.22;
      text-shadow: 2px 2px rgba(0, 0, 0, 0.4);
      overflow: hidden;
      text-overflow: ellipsis;
      -webkit-line-clamp: 2;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      margin-top: 30px;
    }

    .card-item-info-detail {
      position: relative;
      font-size: 18px;
      padding-left: 18px;
      margin-top: 10px;
      line-height: 1;
      text-shadow: 2px 4px 0px rgba(0, 0, 0, 0.2);

      &::before {
        content: "";
        display: block;
        position: absolute;
        width: 6px;
        height: 100%;
        background: $color-primary;
        border-right: 1px;
        top: 2px;
        left: 2px;
      }

      Text,
      span {
        margin-right: 20px;
      }

      .card-item-info-detail-place {
        font-size: 16px;
      }
    }

    .card-item-info-auther {
      position: absolute;
      width: 100%;
      left: 30px;
      bottom: 30px;
      line-height: 50px;
      font-size: 18px;

      image,
      .taro-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        margin-right: 10px;
      }
    }
  }
}